<?php 
/* Template name: Archive */ 
?>
 <?php get_header(); ?> 
 <?php
				$page_name = trim( wp_title( '', false ) );
				$page = get_page_by_title( $page_name );
			?>
<div class="page-bg" style="background-image:url(<?php echo get_post_meta( $page->ID, 'page_subtitle', true ); ?>)"><p><?php echo trim( wp_title( '', false ) ); ?></p></div>  
    <!--PAGE CONTENT-->
	<div class="container">
    	<div class="row"><div class="span12">
            	<h1>&nbsp;</h1>
        </div></div>
       	<div class="clearfix">
		<div class="row"><!-- Main -->
        <div id="blog" class="span8">

        <div class="liststyle">

            <div class="row">
				<div class="span4">
                                <div class="widgetarchive">
                                    <span class="label label-inverse"><?php _e('Latest 10 Project', 'themeText'); ?></span><br /><br />
                                    <ul>
                                     <?php
          query_posts('post_type=portfolio&showposts=10');
          while (have_posts()) : the_post();
         ?>
                                        <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
                                     <?php endwhile; ?>
    
                                    </ul>
                                
                            </div>
                        </div>
                        <div class="span4">
                        	
                                <div class="widgetarchive">
                                <span class="label label-inverse"><?php _e('Latest 10 Posts', 'themeText'); ?></span><br /><br />
                                    <ul>
                                     <?php
          query_posts('showposts=10');
          while (have_posts()) : the_post(); 
         ?>
                       <li>
                      <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>                  		</li>
                                     <?php endwhile; ?>
    
                                    </ul>
                               
                            </div>
                        </div>
                      </div>
                     <div class="row">
				<div class="span4">  
                 <div class="widgetarchive">
                                    <span class="label label-inverse"><?php _e('Archives by Category', 'themeText'); ?></span><br /><br />
                                    <ul>
                                     <?php wp_list_categories('title_li='); ?>
    
                                    </ul>

                            </div>
                            </div>
                              <div class="span4">
                               <div class="widgetarchive">
                                    <span class="label label-inverse"><?php _e('Archives by Month', 'themeText'); ?></span><br /><br />
                                    <ul>
                                     <?php wp_get_archives('type=monthly'); ?>
                                    </ul>
                               
                            </div>
                        </div></div>
            </div>

         
    </div>
  <aside id="sidebar" class="span4">
            
<?php get_sidebar(); ?>        
 </aside> 
        <!-- /Sidebar -->             
        </div>
        <!-- /Box1 --></div>
</div>
</div>
    <?php get_footer(); ?>